function assignValues(stage, stageType, R1, R2, R3, R4, R5, R6, R7, R8, Ra, Rb, C1, C2, C3)
%%
%Notacion
Res1=1;
Res2=2;
Res3=3;
Res4=4;
Res5=5;
Res6=6;
Res7=7;
Res8=8;
Resa=9;
Resb=10;
Cap1=11;
Cap2=12;
Cap3=13;

%%
%Code
switch stage.stageCircuit
    case 1  %Sallen Key
        
        stage.componentTracking{Res1,2} = R1;
        stage.componentTracking{Res1,1} = 'R1';
                    
        stage.componentTracking{Res2,2} = R2;
        stage.componentTracking{Res2,1} = 'R2';
                    
        stage.componentTracking{Cap1,2} = C1;
        stage.componentTracking{Cap1,1} = 'C1';
                    
        stage.componentTracking{Cap2,2} = C2;
        stage.componentTracking{Cap2,1} = 'C2';
                    
        stage.componentTracking{Resa,2} = Ra;
        stage.componentTracking{Resa,1} = 'Ra';
                    
        stage.componentTracking{Resb,2} = Rb;
        stage.componentTracking{Resb,1} = 'Rb';

        
    case 2  %Sedra
        
        stage.componentTracking{Res1,2} = R1;
        stage.componentTracking{Res1,1} = 'R1';
        stage.componentTracking{Res2,2} = R2;
        stage.componentTracking{Res2,1} = 'R2';
        stage.componentTracking{Res3,2} = R3;
        stage.componentTracking{Res3,1} = 'R3';
        stage.componentTracking{Res4,2} = R4;
        stage.componentTracking{Res4,1} = 'R4';
        stage.componentTracking{Res5,2} = R5;
        stage.componentTracking{Res5,1} = 'R5';
        
        stage.componentTracking{Resb,2} = Rb;
        stage.componentTracking{Resb,1} = 'Rb';
        
        stage.componentTracking{Cap1,2} = C1;
        stage.componentTracking{Cap1,1} = 'C1';
        stage.componentTracking{Cap2,2} = C2;
        stage.componentTracking{Cap2,1} = 'C2';
        stage.componentTracking{Cap3,2} = C3;
        stage.componentTracking{Cap3,1} = 'C3';
 
        
        
    case 3  %Universal
        stage.componentTracking{Res1,2} = R1;
        stage.componentTracking{Res1,1} = 'R1';
        stage.componentTracking{Res2,2} = R2;
        stage.componentTracking{Res2,1} = 'R2';
        stage.componentTracking{Res3,2} = R3;
        stage.componentTracking{Res3,1} = 'R3';
        stage.componentTracking{Res4,2} = R4;
        stage.componentTracking{Res4,1} = 'R4';
        stage.componentTracking{Res5,2} = R5;
        stage.componentTracking{Res5,1} = 'R5';
        stage.componentTracking{Res6,2} = R6;
        stage.componentTracking{Res6,1} = 'R6';
        stage.componentTracking{Res7,2} = R7;
        stage.componentTracking{Res7,1} = 'R7';
        stage.componentTracking{Res8,2} = R8;
        stage.componentTracking{Res8,1} = 'R8';

        stage.componentTracking{Cap1,2} = C1;
        stage.componentTracking{Cap1,1} = 'C1';
        stage.componentTracking{Cap2,2} = C2;
        stage.componentTracking{Cap2,1} = 'C2';
        
        
        
    case 4  %Rauch
        stage.componentTracking{Res1,2} = R1;
        stage.componentTracking{Res1,1} = 'R1';
        stage.componentTracking{Res2,2} = R2;
        stage.componentTracking{Res2,1} = 'R2';
        stage.componentTracking{Res3,2} = R3;
        stage.componentTracking{Res3,1} = 'R3';
        
        stage.componentTracking{Resa,2} = Ra;
        stage.componentTracking{Resa,1} = 'Ra';
        stage.componentTracking{Resb,2} = Rb;
        stage.componentTracking{Resb,1} = 'Rb';
        
        stage.componentTracking{Cap1,2} = C1;
        stage.componentTracking{Cap1,1} = 'C1';
    case 5  %Integrador
        
        stage.componentTracking{Resa,2} = Ra;
        stage.componentTracking{Resa,1} = 'Ra';
        stage.componentTracking{Resb,2} = Rb;
        stage.componentTracking{Resb,1} = 'Rb';
        
        stage.componentTracking{Cap1,2} = C1;
        stage.componentTracking{Cap1,1} = 'C1';
    case 6
        
        stage.componentTracking{Resa,2} = Ra;
        stage.componentTracking{Resa,1} = 'Ra';
        stage.componentTracking{Resb,2} = Rb;
        stage.componentTracking{Resb,1} = 'Rb';
        
        stage.componentTracking{Cap1,2} = C1;
        stage.componentTracking{Cap1,1} = 'C1';






end